A standardized procedure was created using bandwidth measurement as an example.#1
A standardized procedure was created using bandwidth measurement as an example.#1wangyf2001 wants to merge 12 commits intomainfrom
Conversation
| - script: make | ||
| displayName: 'build network measure environment' | ||
|
|
||
| - script: cd /home ; sudo wget https://github.com/OpenNetLab/OpenNetLab-P2P-Measurment/blob/v-wangyif/std-process-pitch/machines.json |
There was a problem hiding this comment.
Should not use file in a personal repo.
There was a problem hiding this comment.
In that case, I need to submit a PR of the json file first, because the pipeline needs to download the test file from outside.
| - task: Docker@2 | ||
| condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) | ||
| inputs: | ||
| containerRegistry: 'opennetlab Azure registry' |
There was a problem hiding this comment.
Is that possible the name to OpenNetLab Azure Registry? Should we also change Azure side?
bwmur/bwmurclient.py
Outdated
| if name not in machines: | ||
| raise ValueError("Not find such mahcine") | ||
|
|
||
| #print("iperf") |
There was a problem hiding this comment.
Remove unnecessary comments in the code please.
bwmur/bwmursever.py
Outdated
| socket_timeout_sec = 240 | ||
| machines_file = "machines.json" | ||
| sever_port = "8000" | ||
| sever_ip = "20.81.187.38" |
There was a problem hiding this comment.
Should we use a fixed IP?
There was a problem hiding this comment.
How about change it to 0.0.0.0
|
|
||
|
|
||
| def get_ssh(name): | ||
| client = paramiko.SSHClient() |
There was a problem hiding this comment.
Why we need to use paramiko?
There was a problem hiding this comment.
At that time, SCP was used for data transmission and SSH was needed.
| doc.close() | ||
| netctr = get_ssh("netctr") | ||
| print("start scp") | ||
| scp_client = SCPClient(netctr.get_transport(), socket_timeout=30.0) |
There was a problem hiding this comment.
Let's not start SCP to collect results
machines.json
Outdated
| "host" : "127.0.0.1", | ||
| "bw_port" : "8000", | ||
| "user" : "wang", | ||
| "pwd" : "123456789wang@" |
There was a problem hiding this comment.
Commit a password is not allowed in any case. Should use Keyvault if it is necessary.

The standard process for creating an Opennetlab application is that :
Read entrance definition
Make your program
Create Test pipeline
Adopt by OpenNetLab.
This example creates a standardized program, which corresponds to the "Make your program" section